package com.xc.h05.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName coursepurchase
 */
@Data
public class Coursepurchase implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private Long courseId;

    /**
     * 
     */
    private Long userId;

    /**
     * 
     */
    private BigDecimal purchaseprice;

    /**
     * 
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date purchasetime;

    /**
     * 
     */
    private Integer status;

    private static final long serialVersionUID = 1L;
}